﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="WorkLogAdd.aspx.cs" Inherits="ITOMMS.Web.InsideManage.WorkLogAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>工作日志添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="aspnetForm" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="4">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" alt="" />工作日志添加</div>
                        <asp:Button ID="btnBack" CssClass="cssButton" runat="server" Text="返回"  OnClick="btnBack_Click" /></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    姓名：
                </td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddl姓名" runat="server" Width="160px">
                    </asp:DropDownList><span style="color: Red">*</span></td>
                <td class="tdQueryCaption">
                    部门：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddl部门" runat="server" Width="160px">
                    </asp:DropDownList><span style="color: #ff0000">*</span></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    职位：</td>
                <td class="tdQueryField">
                    <span style="color: Red">
                    <asp:TextBox ID="txt职位" runat="server" Width="157px"></asp:TextBox></span></td>
                <td class="tdQueryCaption">
                    日期：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt日期" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    客户名称：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt客户名称" runat="server" Width="157px"></asp:TextBox><span style="color: #ff0000">*</span></td>
                <td class="tdQueryCaption">
                    重要级别：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddl重要级别" runat="server" Width="160px">
                        <asp:ListItem Value="1">低</asp:ListItem>
                        <asp:ListItem Value="2">正常</asp:ListItem>
                        <asp:ListItem Value="3">高</asp:ListItem>
                        <asp:ListItem Value="4">紧急</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    工作性质：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddl工作性质" runat="server" Width="160px">
                        <asp:ListItem Value="1">例行</asp:ListItem>
                        <asp:ListItem Value="2">偶然</asp:ListItem>
                    </asp:DropDownList></td>
                <td class="tdQueryCaption">
                    接报时间：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt接报时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    到场时间：</td>
                <td class="tdQueryField">
                    <span style="color: Red">
                    <asp:TextBox ID="txt到场时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></span></td>
                <td class="tdQueryCaption">
                    消耗时间：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt消耗时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>小时</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px; height: 274px;">
                    工作内容：</td>
                <td class="tdQueryField" colspan="3" style="height: 274px">
                    <asp:TextBox ID="txt工作内容" runat="server" Height="277px" TextMode="MultiLine" Width="617px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tblDataCaption" style="width: 162px">
                </td>
                <td class="tblDataCaption">
                    <asp:Button ID="btnSave" CssClass="cssButton" runat="server" Text="提交" OnClientClick="javascript:return confirm('你确认要提交吗?');"
                        OnClick="btnSave_Click" /></td>
                <td class="tblDataCaption">
                </td>
                <td class="tblDataCaption">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}
    
    $("#客户名称").attr("dataType","Require");
    $("#客户名称").attr("tip", " ");
    
  
    
    $("#ddl姓名").attr("dataType","OverEqualsZero");
    $("#ddl姓名").attr("tip", "姓名必须选取");
    
    
    $("#ddl部门").attr("dataType","OverEqualsZero");
    $("#ddl部门").attr("tip", "部门必须选取");
                
</script>

